package com.lyb.ui.lend.contract;

import com.lyb.base.BaseView;
import com.lyb.ui.lend.bean.ConfirmLoanBean;
import com.lyb.ui.lend.bean.HomeIndexResponseBean;

/**
 * Created by xiejingwen at 2017/2/15 0015
 */

public interface LendContract {
    interface View extends BaseView{
        void indexSuccess(HomeIndexResponseBean result, boolean isClickLend);
        void toLoanSuccess(ConfirmLoanBean result);
        void confirmFailedSuccess();
        void TipsAlert(String content,String url);
    }
    interface Presenter{
        /**
         * 首页数据
         * @param isClickLend  是否刷新index接口以获取最新认证状态（用于点击借款按钮）
         */
        void loadIndex(boolean isClickLend);

        /**
         * 验证借款信息
         * @param money
         * @param period
         */
        void toLoan(String money,String period);
        /**
         * 借款被拒 点击按钮调用。
         *
         * @param id
         */
        void confirmFailed(String id);
    }
}
